import request from '@/utils/request.js'

export const getAllChannels = () => request({
  method: 'GET',
  url: '/v1_0/channels'
})

export const editMyChannel = (channel) => request({
  method: 'PATCH',
  url: '/v1_0/user/channels',
  data: {
    channels: [channel]
  }
})

export const delMyChannel = (target) => request({
  method: 'DELETE',
  url: `/v1_0/user/channels/${target}`
})
